Skip to content

Conversation

tpambor
Copy link
Contributor

@tpambor tpambor commented Oct 9, 2025

Update hal_stm32 to include fix for compiling for STM32H5 with clang.

Fixes warning about extraneous parentheses when compiling with clang.

/home/user/west_workspace/modules/hal/stm32/stm32cube/stm32h5xx/drivers/src/stm32h5xx_hal_rcc_ex.c:3513:26: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]
 3513 |         else if ((srcclk == RCC_USART2CLKSOURCE_PLL3Q))
      |                   ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/west_workspace/modules/hal/stm32/stm32cube/stm32h5xx/drivers/src/stm32h5xx_hal_rcc_ex.c:3513:26: note: remove extraneous parentheses around the comparison to silence this warning
 3513 |         else if ((srcclk == RCC_USART2CLKSOURCE_PLL3Q))
      |                  ~       ^                           ~
/home/user/west_workspace/modules/hal/stm32/stm32cube/stm32h5xx/drivers/src/stm32h5xx_hal_rcc_ex.c:3513:26: note: use '=' to turn this equality comparison into an assignment
 3513 |         else if ((srcclk == RCC_USART2CLKSOURCE_PLL3Q))
      |                          ^~
      |                          =

EDIT (@erwango): Also introduces ALE and CLE pins for the FMC peripheral from a distinct HAL PR.

Copy link

github-actions bot commented Oct 9, 2025

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
hal_stm32 zephyrproject-rtos/hal_stm32@5d27023 zephyrproject-rtos/hal_stm32@55e1597 (main) zephyrproject-rtos/[email protected]

All manifest checks OK

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@github-actions github-actions bot added manifest manifest-hal_stm32 DNM (manifest) This PR should not be merged (controlled by action-manifest) labels Oct 9, 2025
@zephyrbot zephyrbot added size: XS A PR changing only a single line of code platform: STM32 ST Micro STM32 labels Oct 9, 2025
@tpambor tpambor force-pushed the update-hal-stm32-clang branch 2 times, most recently from 7249c5b to ba49151 Compare October 13, 2025 11:33
@erwango erwango added this to the v4.3.0 milestone Oct 15, 2025
erwango
erwango previously approved these changes Oct 15, 2025
Copy link
Member

@erwango erwango left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to wait #97126 to be merged first

@erwango
Copy link
Member

erwango commented Oct 16, 2025

Please rebase.

@erwango
Copy link
Member

erwango commented Oct 16, 2025

Btw, if you don't mind, it would be nice to take zephyrproject-rtos/hal_stm32#318 as well. Up to you

Update hal_stm32 to include
- fix for compiling for STM32H5 with clang
- ale/cle pin definitions for FMC peripheral

Signed-off-by: Tim Pambor <[email protected]>
@tpambor tpambor force-pushed the update-hal-stm32-clang branch from ba49151 to e946b85 Compare October 17, 2025 06:22
@github-actions github-actions bot removed DNM (manifest) This PR should not be merged (controlled by action-manifest) Binary Blobs Modified labels Oct 17, 2025
@erwango
Copy link
Member

erwango commented Oct 17, 2025

Thanks!

Copy link

@tpambor tpambor changed the title west.yml: hal_stm32: update to fix compiling with clang west.yml: hal_stm32: update to fix compiling with clang and pin updates Oct 17, 2025
@henrikbrixandersen henrikbrixandersen merged commit 5b5c057 into zephyrproject-rtos:main Oct 17, 2025
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

manifest manifest-hal_stm32 platform: STM32 ST Micro STM32 size: XS A PR changing only a single line of code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants